package com.hoshiicloud.stock.feign.hystrix;

import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.stock.feign.SkuFeignService;
import org.springframework.stereotype.Component;

/**
 * SKU微服务FeignClient熔断器
 *
 * @author : yangcheng
 * @date : 2019/5/18 16:13
 * @mail : maiboyc@163.com
 **/
@Component
public class HystrixSkuFeignFallback implements SkuFeignService {

    /**
     * 根据id获取
     * @param id ID
     * @return Response
     */
    @Override
    public Response getById(Long id) {
        return Response.failed("查询SKU信息失败");
    }

}